﻿package com.xkrys.event 
{
	import flash.events.Event;
	
	/**
	 * ...
	 * @author Christopher Courtois
	 */
	public class ScrollEvent extends Event 
	{
	
		public static const VALUE_CHANGED = "scroll.valueChanged";
		
		private var _value:Number;
		
		public function ScrollEvent(type:String, value:Number, bubbles:Boolean=false, cancelable:Boolean=false) 
		{ 
			super(type, bubbles, cancelable);
			_value = value;
			
		} 
		
		public function get value():Number { return _value; }
		
				
		public override function clone():Event 
		{ 
			return new ScrollEvent(type, _value, bubbles, cancelable);
		} 
		
		public override function toString():String 
		{ 
			return formatToString("ScrollBarEvent", "type", "bubbles", "cancelable", "eventPhase", "value"); 
		}
		
	}
	
}